function likes (names){

    var templates=[
        'no one like this',
        '{name} like this',
        '{name} and {name} like this',
        '{name},{name} and {name} like this',
        '{name},{name} and {n} like this',
    ]

    var idx =Math.min(names.length,4)
    return templates[idx].replace(/{name}|{n}/g,function(val){
        console.log(val, "---------")
         return name.shift()
    })
}

likes(['龙哥','发哥'])